<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/form.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/utils.js"></script>
<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location	= res.data.forward;
}else{
	alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div class="grid_12">
	<div class="new_header" style="height:50px;">
	<div class="header_top" style="padding-left:0px;">
		<h1><a class="logo_new" href="{$this->data['baseurl']}"></a><span class="none">{$this->data['site']['site_name']}</span></h1>
	</div>
	<div class="clear"></div>
</div>		
</div>
<div class="clear"></div>
<div class="grid_12">


	
<div class="box_shadow p13 mt14 mb14">

	<div id="RegForm" class="register-page-wrapper" >

		<h3 class="f24">注册{$this->data['site']['site_name']}</h3>
		<div class="left newRegFromMain mt14">

			<div class="clear"></div>
			<form action="{url('User','SaveSetup')}" method="post" id="form">
					
			<div class="oneline mt14">
				<div class="inputBox left">
					　用户名：<input class="input1" type="text" name="username" maxlength="50"  tabindex="1">
				</div>
				<div class='hints left'><span class='error_info' etype='error_info' id="username_info"></span></div>
				<div class="clear"></div>
			</div>
				
			<div class="oneline mt14">
				<div class="inputBox left" id="showpassword" >
				　密　码：<input id="txtPassword" class="input1 " type="password" name="password" value="" maxlength="20" tabindex="2">
				</div>
				<div class='hints left'><span class='error_info' etype='error_info' id="password_info"></span></div>
				<div class="clear"></div>
			</div>
			
			<div class="oneline mt14">
				<div class="inputBox left" id="showpassword" >
				确认密码：<input id="txtPassword" class="input1 " type="password" name="confirm" value="" maxlength="20" tabindex="2">
				</div>
				<div class='hints left'><span class='error_info' etype='error_info' id="confirm_info"></span></div>
				<div class="clear"></div>
			</div>
 			
 			
			<div class="oneline mt14 none">
				<div class="inputBox left" id="showpassword">
				　验证码：<input type="text" class="input2 " name="checkcode" id="checkcode2"  maxlength="4" />
				</div>
				<div class="left">
					<span id="checkCodeSpan" class="cursor left" onclick="changeCheckCode();return true;" />
						<img id="checkCodeImage" src="#" class="cursor" >
					</span>
				</div>
				<div class='left change-code'>&nbsp;<a href="#" class="red" onclick="changeCheckCode();return false;">换一张</a></div>
				<div class='hints left' style='margin-left:10px;'></div>
				<div class="clear"></div>
			</div>
				
			<div class="clear-fix"></div>
			
			
			<div class="mt14">
				<div class='inputBox'>
					<input type="submit" value="立即注册" id="newRegister_submit" class="regFormBtn" />
	             </div>
	             <div class="clear"></div>

			</div>
			<div class="oneline mt10">
				<div class="inputBox left" style='border:0px;'>
					<input type="checkbox" id="agreement" checked="checked" onClick="clickAgreement();"></input>
	                	同意<a href="#" target='_blank'>{$this->data['site']['site_name']}注册条款</a>
	             </div>
	             <div class="clear"></div>
			</div>
			</form>
	
		</div>
	
		<div class="left newRegFromRight mt30">
			<h4 class="f16">用{$this->data['site']['site_name']}账号<a class="red" href="{url('User','Login')}">登录</a></h4>
			<div class="mt30 f16n">
				你还可以用以下方式直接登录：
				<div class="mt10" style="width:280px;">

					<a class="reg_sinaweibo" href="{url('Auth','Sina')}" target="_blank"></a>
					<a class="reg_qq" href="{url('Auth','QQ')}" target="_blank"></a>
					<a class="reg_taobao" href="{url('Auth','Tabao')}" target="_blank"></a>
					<span class="f12 reg_all mt30 left cursor" onclick="$(this).hide().nextAll('a').show();">更多<samp>>></samp></span>
					<a class="reg_renren" href="{url('Auth','Renren')}" target="_blank" style="display:none;"></a>
					<a class="reg_wangyi" href="{url('Auth','Wangyi')}" target="_blank" style="display:none;"></a>
					<a class="reg_douban" href="{url('Auth','Douban')}" target="_blank" style="display:none;"></a>
					<a class="reg_baidu" href="{url('Auth','Baidu')}" target="_blank" style="display:none;"></a>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>


		</div>